package com.lulin.mall.auth.server.fegin;

import com.lulin.common.utils.R;
import com.lulin.mall.auth.server.vo.LoginVo;
import com.lulin.mall.auth.server.vo.SocialUser;
import com.lulin.mall.auth.server.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 会员服务相关调用
 *
 * @author lulin
 * @date 2022/12/7 11:14
 */
@FeignClient("mall-member")
public interface MemberFeignService {
    /**
     * 会员注册
     */
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    /**
     * 登录
     */
    @PostMapping("/member/member/login")
    public R login(@RequestBody LoginVo vo);

    /**
     * 微博社交登录
     */
    @PostMapping("/member/member/oauth2/login")
    public R weiboSocialLogin(@RequestBody SocialUser vo);
}
